<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传/下载</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script>
        $(function () {
            $.ajax({
                url:"/district/list",
                data:null,
                type:"GET",
                dataType:"JSON",
                success:function (result) {
                    var json = result.data;
                    for(var i = 0;i<json.length;i++){
                        console.log(json[i].data);
                    }
                },
                error:function () {
                    alert("凉了~~~~~~~~")
                }

            });
        });
    </script>
</head>
<body>
<form action="/upload" method="post" enctype="multipart/form-data">
    <input type="file" name="pic" /><br />
    <button type="submit">点我上传</button>
</form>
</form>
</body>
</html>